import os
import csv
path = "./dataset/weibo_senti_100k.csv"

with open("pos.txt", "w", encoding='utf-8') as f1:
    with open("neg.txt", "w", encoding='utf-8') as f2:
        file = csv.reader(open(path, 'r', encoding='utf-8'))
        for line in file:
            if line[0] == '1':
                f1.write(line[1] + "\n")
            else:
                f2.write(line[1] + "\n")
